﻿@model PagedList.PagedList<GameMall_Back.ViewModels.Warehouse.ViewModelStockLog>
@{ 
    Layout = null;
}
<div class="head">
    <a href="/Warehouse/WarehouseList" class="button">仓库列表</a>
    <div class="search-block">
        <input type="text" name="searchKey" id="searchKey" placeholder="操作记录" />
        <button class="search" onclick="search()"></button>
    </div>
</div>
<div class="list">
    <table>
        <thead>
            <tr>
                <th class="choosebox"><input type="checkbox" /></th>
                <th>编号</th>
                <th>订单号</th>
                <th>仓库名</th>
                <th>操作者</th>
                <th>操作商品</th>
                <th>库存</th>
                <th>操作时间</th>
                <th class="operation">操作记录</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td class="choosebox"><input type="checkbox" /></td>
                    <td>@item.StockLogId</td>
                    <td>@item.OrderId</td>
                    <td>@item.WarehouseId</td>
                    <td>@item.AdminId</td>
                    <td><div>@item.GoodsId</div><div>@item.VersionId</div></td>
                    <td>@item.Stock</td>
                    <td>@item.OperationTime</td>
                    <td class="operation">
                        @item.OperationRecord
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
<div class="jbt_page">
    <input id="page_totle_count" value="@Model.PageCount" type="hidden" />
    <input id="current_page" value="@Model.PageNumber" type="hidden" />
    <span>共 @Model.PageCount 页</span>
    <input class="to_first" type="button" title="第一页" onclick="to_first()" />
    <input class="to_pre" type="button" title="前一页" onclick="to_pre()" />
    <span>第</span><input class="inputbox_page_number" id="inputbox_page_number" value="@Model.PageNumber" /><span>页</span>
    <input class="to_next" type="button" title="下一页" onclick="to_next()" />
    <input class="to_last" type="button" title="最后一页" onclick="to_last()" />
    <button id="go_to_page" class="goto" onclick="go_to()">GO</button>
</div>
